package com.xfapp.demos.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 存储消防操作员刷题相关的题目
 * </p>
 *
 * @author jinYi
 * @since 2025-06-05
 */
@Getter
@Setter
@TableName("t_question")
public class Question implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 自增主键，唯一标识
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 章节 id
     */
    @TableField("chapter_id")
    private Long chapterId;

    /**
     * 题目类型（1单选，2多选，3判断）
     */
    private Integer type;

    /**
     * 题目内容
     */
    @TableField("question_text")
    private String questionText;

    /**
     * 答案选项
     */
    @TableField("answer_options")
    private String answerOptions;

    /**
     * 正确答案
     */
    @TableField("correct_answer")
    private String correctAnswer;

    /**
     * 答案解析
     */
    @TableField("answer_analysis")
    private String answerAnalysis;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 删除标记
     */
    @TableField("del_flag")
    private Integer delFlag;


}
